//请求后台的方法
import request from '@/request'



//查询需求管理列表
export function getDemandByPage(data){
  return request({
    url:'/demand/getDemandByPage',
    method: 'post',
	data
  })
}


//ID查询需求详情
export function getDemandDetails(params){
  return request({
    url:'/demand/getDemandDetails',
    method: 'get',
	params:params
  })
}

//查询需求管理日历
export function getDemandCalendar(data){
  return request({
    url:'/demand/getDemandCalendar',
    method: 'post',
	data
  })
}

//查询需求管理日历 日视图
export function getDemandCalendarDay(data){
  return request({
    url:'/demand/getDemandCalendarDay',
    method: 'post',
	data
  })
}

//提交
export function addAll(data){
  return request({
    url:'/demand/addAll',
    method: 'post',
	data
  })
}

//保存
export function saveAll(data){
  return request({
    url:'/demand/saveAll',
    method: 'post',
	data
  })
}

//撤销
export function delAll(data){
  return request({
    url:'/demand/delAll',
    method: 'post',
	data
  })
}

//ID查询详情
export function selectAllByApplyId(params){
  return request({
    url:'/demand/selectAllByApplyId',
    method: 'get',
	params:params
  })
}

//配置服务调用信息
export function updateApplySystemCallInfo(data){
	return request({
	    url:'/demand/updateApplySystemCallInfo',
	    method: 'post',
		data
	  })
}

/**
 * 修改服务调用信息
 * @param {Object} data
 */
export function updateSystemCallInfo(data){
	return request({
	    url:'/demand/updateSystemCallInfo',
	    method: 'post',
		data
	  })
}


/**
 * 修改服务调用信息
 * @param {Object} data
 */
export function addSystemCallInfo(data){
	return request({
	    url:'/demand/addSystemCallInfo',
	    method: 'post',
		data
	  })
}




//配置系统注册信息
export function updateApplySystemInfo(data){
	return request({
	    url:'/demand/updateApplySystemInfo',
	    method: 'post',
		data
	  })
}

//配置环境维护信息
export function updateApplyEnvironmentInfo(data){
	return request({
	    url:'/demand/updateApplyEnvironmentInfo',
	    method: 'post',
		data
	  })
}

//自动生成服务编码
export function autoGenerateBusCode(params){
	return request({
	    url:'/demand/autoGenerateBusCode',
	    method: 'post',
		params: params
	  })
}

//配置服务注册信息
export function updateApplyServerInfo(data){
	return request({
	    url:'/demand/updateApplyServerInfo',
	    method: 'post',
		data
	  })
}

//开发完成确认
export function developConfirm(params){
	return request({
		url:'/demand/developConfirm',
		method: 'post',
		params: params
	})
}


/**
 * 导入
 * @param {Object} data
 */
export function getFileByExcel(data){
  return request({
    url:'/demand/getFileByExcel',
    method: 'post',
	contentType:'multipart/form-data',
	data
  })
}

/**
 * 服务注册校验
 * @param {Object} data
 */
export function getServerCheck(data){
	return request({
	    url:'/demand/getServerCheck',
	    method: 'post',
		data
	  })
}

/**
 * 环境登记校验
 * @param {Object} data
 */
export function checkEnvirInfo(data){
	return request({
	    url:'/demand/checkEnvirInfo',
	    method: 'post',
		data
	  })
}

/**
 * 服务调用校验
 * @param {Object} data
 */
export function getSystemCallCheck(data){
	return request({
	    url:'/demand/getSystemCallCheck',
	    method: 'post',
		data
	  })
}

/**
 * 系统维护校验
 * @param {Object} data
 */
export function getSystemCheck(data){
	return request({
	    url:'/demand/getSystemCheck',
	    method: 'post',
		data
	  })
}

export function addAppendix(data){
  return request({
    url:'/demand/addAppendix',
    method: 'post',
	data
  })
} 

export function addAppendixSingle(data){
  return request({
    url:'/demand/addAppendixSingle',
    method: 'post',
	data
  })
} 

export function deleteAppendixSingle(data){
  return request({
    url:'/demand/deleteAppendixSingle',
    method: 'post',
	data
  })
} 





export function appendixDown(data){
  return request({
    url:'/demand/appendixDown',
    method: 'post',
	responseType:'blob',
	data
  })
}


/**
 * 一键生成所有R值
 * @param {Object} params
 */
export function generateAll(params){
  return request({
    url:'/demand/generateAll',
    method: 'post',
	params: params
  })
} 


/**
 * 基础信息比较
 * @param {Object} data
 */
export function getBaseBySmpAndApply(data){
  return request({
    url:'/demand/getBaseBySmpAndApply',
    method: 'post',
	data
  })
} 

/**
 * 历史信息比较
 * @param {Object} data
 */
export function getBaseBySmpAndHis(params){
  return request({
    url:'/demand/getBaseBySmpAndHis',
    method: 'post',
	params: params
  })
} 




export function getPathList(data){
  return request({
    url:'/demand/getPathList',
    method: 'post',
	data
  })
}

export function exportApplyService(params){
  return request({
    url:'/demand/exportApplyService',
    method: 'post',
	responseType:'blob',
	params: params
  })
}


